package com.leo.stockmarket.dao;

import com.github.pagehelper.Page;
import com.leo.stockmarket.bean.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 890231 lxj
 * @version 1.0
 * @date 2020/8/19 8:24
 */
@Mapper
public interface ArticleDao {

    List<Article> queryArticleList();

    Article queryArticleById(@Param("businessId")String businessId);

    Integer insert(Article article);

    List<Article> queryListBySubjectId(@Param("subjectId")String subjectId, @Param("type")String type);

    //Integer update(Article article);

    Page<Article> queryList();
}
